import { Request, Response } from 'express';
import { getOssSign } from '../utils/oss';

export const getOssSignController = async (req: Request, res: Response) => {
  try {
    const sign = getOssSign();
    res.json({ success: true, data: sign });
  } catch (e) {
    res.status(500).json({ success: false, message: '获取OSS签名失败' });
  }
}; 